package com.gzx.spring.apis.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.gzx.risk.core.pojo.CommonResult;
import com.gzx.risk.core.tags.CommonLog;
import com.gzx.spring.apis.service.XinyisouService;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;

@Tag(name = "信易搜apis验证")
@RestController
@RequestMapping("/apis/xinyisou")
public class ApisXinyisouController {

	@Resource
	private XinyisouService xinyisouService;

	@Operation(summary = "score95")
	@CommonLog("score95")
	@PostMapping("/score95")
	public CommonResult<String> score95(@RequestParam(name = "name") String name, @RequestParam(name = "id") String id,
			@RequestParam(name = "phone") String phone) throws Exception {
		String result = xinyisouService.score95(name, id, phone);
		return CommonResult.ok(result);
	}

	@Operation(summary = "score95s")
	@CommonLog("score95s")
	@PostMapping("/score95s")
	public CommonResult<String> score95s(@RequestParam(name = "name") String name, @RequestParam(name = "id") String id,
			@RequestParam(name = "phone") String phone) throws Exception {
		String result = xinyisouService.score95s(name, id, phone);
		return CommonResult.ok(result);
	}

}
